home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 September (Japanese) / CICA Shareware for Windows CD-ROM (Walnut Creek) (September 1995) (Japanese) (Disc 2).iso / disc2 / patches / symantec / rtl611.exe / RTLUPDAT.BAT < prev    next >
Encoding:
DOS Batch File  |  1994-04-14  |  3.0 KB  |  104 lines

  1. @echo off
  2. @echo ---------------------------------------------
  3. @echo I                                           I
  4. @echo I  This file should update some or          I
  5. @echo I  all of these files                       I
  6. @echo I   SDC.lib     SWC.lib     SDV.lib         I
  7. @echo I   SDL.lib     SWL.lib     SDX.lib         I
  8. @echo I   SDMlib      SWM.lib     SNN.lib         I
  9. @echo I   SDS.lib     SWS.lib                     I
  10. @echo I                                           I
  11. @echo I  Also some header files in INCLUDE,       I
  12. @echo I  INCLUDE\WIN32                            I
  13. @echo I                                           I
  14. @echo I  depending on the version(STD/PRO) of SC  I                   
  15. @echo I  files in your \SC dir                    I
  16. @echo I                                           I
  17. @echo I  steps:                                   I
  18. @echo I  cd to \SC                                I
  19. @echo I  Type "rtlupdat"                          I
  20. @echo I                                           I
  21. @echo ---------------------------------------------
  22. pause
  23.  
  24. rem test if any of the compiler components is present.
  25. rem if not, display error
  26. if exist .\bin\sccx.exe goto SDXpatch
  27. if exist .\bin\scppx.exe goto SDXpatch
  28. if exist .\bin\sccd.dll goto SDXpatch
  29. if not exist .\bin\scppd.dll goto error
  30.  
  31. :SDXpatch
  32. rem do the SDX patching
  33. if not exist .\lib\sdx.lib goto SDLpatch
  34. rtlpatch .\lib sdx-611.rtp /nopathsearch /ignore
  35.  
  36. :SDLpatch
  37. rem do the SDL patching
  38. if not exist .\lib\sdl.lib goto SWMpatch
  39. rtlpatch .\lib sdl-611.rtp /nopathsearch /ignore
  40.  
  41. :SWMpatch
  42. rem do the SWM patching
  43. if not exist .\lib\swm.lib goto patch
  44. rtlpatch .\lib swm-611.rtp /nopathsearch /ignore
  45.  
  46. :patch
  47. rem do rest of the libraries patching
  48. rtlpatch .\lib restrtl.rtp /nopathsearch /ignore
  49.  
  50. :INC32patch
  51. rem do the INCLUDE\WIN32 patching
  52. if not exist .\include\win32\windows.h goto INCpatch
  53. rtlpatch .\include\win32 inc32.rtp /nopathsearch /ignore
  54.  
  55. :INCpatch
  56. rem do the INCLUDE patching
  57. if not exist .\include\windows.h goto Cleanup
  58. rtlpatch .\include restinc.rtp /nopathsearch /ignore
  59.  
  60. :Cleanup
  61. rem cleaning up
  62. @echo -------------------------------------------------
  63. @echo This will now delete files related to 
  64. @echo this Libraries patch with the exception of 
  65. @echo RTLUPDAT.TXT detailing the changes made for 
  66. @echo Symantec C++ 6.11 
  67. @echo .
  68. @echo Press Ctrl+C to abort
  69. @echo -------------------------------------------------
  70. pause
  71.  
  72. rem files containing the patches
  73. del SDX-611.RTP
  74. del SDL-611.RTP
  75. del SWM-611.RTP
  76. del INC32.RTP
  77. del RESTINC.RTP
  78. del RESTRTL.RTP
  79.  
  80. rem self-extracting archives
  81. del RTL611.EXE
  82.  
  83. rem patch utility
  84. del RTLPATCH.EXE
  85.  
  86. rem readme-first files
  87. del RTLREAD.1ST
  88.  
  89. rem patch instructions
  90. del RTL611.TXT
  91.  
  92. goto end
  93.  
  94. rem display error
  95. :error
  96. @echo -------------------------------------
  97. @echo  You are not in the right directory!
  98. @echo  Change directory to the root of
  99. @echo  your Symantec C++ installation, 
  100. @echo  typically \SC
  101. @echo -------------------------------------
  102.  
  103. :end
  104.